package com.grj.park.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.park.boot.domain.Device;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;
import java.time.LocalDateTime;
import java.util.List;

/**
* @author eren
* @description 针对表【device(设备管理表)】的数据库操作Service
* @createDate 2024-11-08 14:35:39
*/
public interface DeviceService extends IService<Device> {

    Page<Device> fetchDevicePage(int currentPage, int pageSize, Device device, List<LocalDateTime> during);

    void postDevice(@Valid Device device);

    void putDevice(@Valid Device device);

    void delDevice(Long id);

    void batchDelDevice(List<Long> ids);

    Device fetchDeviceById(Long id);
}
